package com.my.study.designPatterns.combinationPattern;

public class MenuTestDriver {

    public static void main(String[] args) {

        MenuComponent pancakeHouseMenu = new Menu("PANCAKE HOUSE MENU", "Breakfast");

        MenuComponent dinnerMenu = new Menu("DINNER MENU", "Lunch");

        MenuComponent cafeMenu = new Menu("CAFE MENU", "Dinner");

        MenuComponent dessertMenu = new Menu("DESSERT MENU", "Dessert of course!");

        MenuComponent allMenus = new Menu("ALL MENUS", "All menus combined");

        allMenus.add(pancakeHouseMenu);
        allMenus.add(dinnerMenu);
        allMenus.add(cafeMenu);

        pancakeHouseMenu.add(new MenuItem("K&B Pancake Breakfast", "Pancakes with scrambled eggs, and toast", true, 2.99));
        pancakeHouseMenu.add(new MenuItem("Regular Pancake Breakfast", "Pancakes with fried eggs, sauage", true, 4.99));


        dinnerMenu.add(dessertMenu);
        dessertMenu.add(new MenuItem("Pasta", "Spagnetti with Marinara Sauce, and a slice of sourdough bread", true, 3.89));
        dessertMenu.add(new MenuItem("Apple Pie", "Apple pie with a flakey crust, topped with canilla ice cream", true, 4.12));

        dinnerMenu.add(new MenuItem("Vegeratian BLT", "Ban with aaa", false, 1.1));
        dinnerMenu.add(new MenuItem("HotDog lalla", "Ban with aaa", true, 19.1));


        cafeMenu.add(new MenuItem("Veggie Burger and Air Fries", "Veggie burger on a whole what", false, 4.5));

        Waitress waitress = new Waitress(allMenus);
        //waitress.printMenu();


        System.out.println();

        waitress.printVegetarianMenu();

    }
}
